package com.example.graphmovieapp.dto;

/**
 * Movie DTO用于查询结果映射
 */
public class MovieDTO {
    private Long id;
    private String title;
    private Integer released;

    public MovieDTO() {}

    public MovieDTO(Long id, String title, Integer released) {
        this.id = id;
        this.title = title;
        this.released = released;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getReleased() {
        return released;
    }

    public void setReleased(Integer released) {
        this.released = released;
    }

    @Override
    public String toString() {
        return "MovieDTO{id=" + id + ", title='" + title + "', released=" + released + "}";
    }
}